package bud.vo;

import org.apache.commons.codec.binary.Base64;

import lombok.Data;

@Data
public class CommentShopDTO {
	private Integer cs_no;
	private Integer cs_ref_key;
	private Integer cs_from_member;
	private String cs_date;
	private String cs_comment;
	private byte[] mem_photo;
	private String mem_name;
	private String cs_dateStr;
	
	public String getMem_photoStr(){
		return mem_photo==null?null:Base64.encodeBase64String(mem_photo);
	}
	public void setCs_date(String cs_date){
		this.cs_date = cs_date;
		cs_dateStr = cs_date.substring(0, 16);
	}
}
